oblige (someone) by (doing something)

Translations
faire plaisir à quelqu’un en faisant quelque chose